Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@os-design/theming
Advanced tools
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
Install the package using the following command:
yarn add @os-design/theming
Also make sure that you have the @emotion/react package installed.
Create the emotion.d.ts
file with the following content:
import '@emotion/react';
import { Theme as BaseTheme } from '@os-design/theming';
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface Theme extends BaseTheme {}
}
ThemeProvider
For example:
import React from 'react';
import { ThemeProvider } from '@os-design/theming';
import AppRouter from './AppRouter';
const App: React.FC = () => (
<ThemeProvider>
<AppRouter />
</ThemeProvider>
);
export default App;
See all theming features in the Storybook.
FAQs
Before you start using the os-design components, you need to add the ThemeProvider that will apply the theme to all the components used.
The npm package @os-design/theming receives a total of 12 weekly downloads. As such, @os-design/theming popularity was classified as not popular.
We found that @os-design/theming demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.